package com.usabb.service;

import com.usabb.api.dto.AttachesDTO;
import com.usabb.domain.AttachDO;
import com.ifast.common.base.CoreService;
import com.usabb.enums.BizTypeEnum;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 
 * <pre>
 * 附件表
 * </pre>
 * <small> 2019-08-19 18:03:27 | Aron</small>
 */
public interface AttachService extends CoreService<AttachDO> {

    List<AttachDO> getBy(BizTypeEnum bizTypeEnum, final Long bizId);
    AttachesDTO getAttachesDTOBy(BizTypeEnum bizTypeEnum, final Long bizId);

    void upload(AttachDO attachDO, MultipartFile file1);
    void upload(AttachDO attachDO, MultipartFile[] files);


    void upload2(AttachDO attachDO, MultipartFile file1);

    void upload3(AttachDO attachDO, MultipartFile file1);
    void upload3(AttachDO attachDO, MultipartFile[] files);
}
